/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package servicecategorization;

import java.util.HashMap;

/**
 *
 * @author Administrator
 */
public class ServiceTuple {

    private HashMap<String, String> map;

    public ServiceTuple() {
        map = new HashMap<String, String>(9, (float)1.0);
    }

    public ServiceTuple(String id, String operation_name, String input_name, String output_name, String documentation, String operation_name_syn, String input_name_syn, String output_name_syn, String documentation_syn) {
        map = new HashMap<String, String>(9, (float) 1.0);
        map.put(ID, id);
        map.put(OPERATION_NAME, operation_name);
        map.put(INPUT_NAME, input_name);
        map.put(OUTPUT_NAME, output_name);
        map.put(DOCUMENTATION, documentation);
        map.put(OPERATION_NAME_SYN, operation_name_syn);
        map.put(INPUT_NAME_SYN, input_name_syn);
        map.put(OUTPUT_NAME_SYN, output_name_syn);
        map.put(DOCUMENTATION_SYN, documentation_syn);
    }

    public String getId() {
        return map.get(ID);
    }

    public void setId(String id) {
        map.put(ID, id);
    }

    public String getOperation_name() {
        return map.get(OPERATION_NAME);
    }

    public void setOperation_name(String operation_name) {
        map.put(OPERATION_NAME, operation_name.toString());
    }

    public String getInput_name() {
        return map.get(INPUT_NAME);
    }

    public void setInput_name(String input_name) {
        map.put(INPUT_NAME, input_name.toString());
    }

    public String getOutput_name() {
        return map.get(OUTPUT_NAME);
    }

    public void setOutput_name(String output_name) {
        map.put(OUTPUT_NAME, output_name.toString());
    }

    public String getDocumentation() {
        return map.get(DOCUMENTATION);
    }

    public void setDocumentation(String documentation) {
        map.put(DOCUMENTATION, documentation.toString());
    }
    //SYN---------------------------
    public String getOperation_name_syn() {
        return map.get(OPERATION_NAME_SYN);
    }

    public void setOperation_name_syn(String operation_name_syn) {
        map.put(OPERATION_NAME_SYN, operation_name_syn.toString());
    }

    public String getInput_name_syn() {
        return map.get(INPUT_NAME_SYN);
    }

    public void setInput_name_syn(String input_name_syn) {
        map.put(INPUT_NAME_SYN, input_name_syn.toString());
    }

    public String getOutput_name_syn() {
        return map.get(OUTPUT_NAME_SYN);
    }

    public void setOutput_name_syn(String output_name_syn) {
        map.put(OUTPUT_NAME_SYN, output_name_syn.toString());
    }

    public String getDocumentation_syn() {
        return map.get(DOCUMENTATION_SYN);
    }

    public void setDocumentation_syn(String documentation) {
        map.put(DOCUMENTATION_SYN, documentation.toString());
    }

    @Override
    public String toString() {
        return map.toString();
    }
    public final String ID = "ID";
    public final String OPERATION_NAME = "OPERATION_NAME";
    public final String INPUT_NAME = "INPUT_NAME";
    public final String OUTPUT_NAME = "OUTPUT_NAME";
    public final String DOCUMENTATION = "DOCUMENTATION";
    public final String OPERATION_NAME_SYN = "OPERATION_NAME_SYN";
    public final String INPUT_NAME_SYN = "INPUT_NAME_SYN";
    public final String OUTPUT_NAME_SYN = "OUTPUT_NAME_SYN";
    public final String DOCUMENTATION_SYN = "DOCUMENTATION_SYN";
}
